package com.cjm.one.model.goods.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum GoodsInfoStatusEnum implements BaseEnum {
    @JsonEnumDefaultValue
    INIT(0, "初始值"),
    ONLINE(1, "上架"),
    OFFLINE(-1, "自主下架");
    @EnumValue
    @JsonValue
    private int code;
    private String message;
//    线上状态：0-初始值，1-上架，-1-自主下架

    GoodsInfoStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
